<html>
 <head>
   <meta name="layout" content="main"/>
 </head>
 <body>
   <div class="nav">
     <ul>
       <li><a href="${createLink(uri:'/') }">HOME</a></li>
       <li><g:link class="list" action="list" >Lista de Articulos</g:link></li>
       <li><g:link class="save" action="create" >Crear Articulo</g:link></li>              
     </ul>
   </div>
   <div>
     <h1>Articulo</h1>
     <g:if test="${flash.message}">
       <div class="message">${flash.message}</div>
     </g:if>
     <ol>
       <g:if test="${articuloInstance?.descripcion}">
         <li class="fieldcontain">
           <span id="descripcion-label" class="property-label">Descripción:</span>
           <span class="property-value"><g:fieldValue bean="${articuloInstance}" field="descripcion"/></span>
         </li>
       </g:if>
       <g:if test="${articuloInstance?.tipo}">
         <li class="fieldcontain">
           <span id="tipo-label" class="property-label">Codigo</span>
           <span class="property-value" ><g:fieldValue bean="${articuloInstance?.tipo}" field="nombre"/> </span>
         </li>
       </g:if>
       <g:if test="${articuloInstance?.numeroArticulo }">
         <li class="fieldcontain">
           <span id="numeroArticulo-label" class="property-label">Número Art</span>
           <span class="property-value"><g:fieldValue bean="${articuloInstance}" field="numeroArticulo"/> </span>
         </li>
       </g:if>
     </ol>
     <g:form>
       <fieldset class="buttons">
         <g:hiddenField name="id" value="${articuloInstance?.id}"/>
         <g:link class="edit" action="edit" id="${articuloInstance?.id}">Edit</g:link>
         <g:actionSubmit class="delete" action="delete" value="Delete"/>
       </fieldset>
     </g:form>
   </div>
 </body>
</html>